package com.srd.phone.activity;

import android.annotation.TargetApi;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;

import com.shengrongdai.srd.R;

/**
 * 投资管理
 */
public class InvestManageActivity extends BaseActivity implements View.OnClickListener {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_invest_manage);

        initView();
    }

    @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
    public void initView() {
        tv_common_title.setText("投资管理");

        findViewById(R.id.rl_invest_record).setOnClickListener(this);
        findViewById(R.id.rl_return_money_record).setOnClickListener(this);
        findViewById(R.id.rl_recharge_record).setOnClickListener(this);
        findViewById(R.id.rl_withdraw_record).setOnClickListener(this);
        findViewById(R.id.rl_auto_invest).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {

            case R.id.rl_invest_record:
                startActivity(new Intent(this, InvestRecordActivity.class));
                break;
            case R.id.rl_return_money_record:
                startActivity(new Intent(this, ReturnMoneyRecordActivity.class));
                break;
            case R.id.rl_recharge_record:
                startActivity(new Intent(this, RechargeRecordActivity.class));
                break;
            case R.id.rl_withdraw_record:
                startActivity(new Intent(this, WithdrawRecordActivity.class));
                break;
            case R.id.rl_auto_invest:
                startActivity(new Intent(this, AutoInvestActivity.class));
                break;
        }
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

}